//
//  AboHttpRequest.h
//  EyuGameSDK
//
//  Created by 李长春 on 2022/5/12.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN
typedef void(^NetworkSuccessBlock)(NSDictionary * _Nonnull response);
typedef void(^NetworkFailBlock)(NSError * _Nonnull error);
@interface AboHttpRequest : NSObject
    
#pragma mark -
#pragma mark post
/**
 *  POST请求
 *
 *  @param urlStr  url地址
 *  @param params  请求参数
 *  @param success 请求成功调用
 *  @param failure 请求失败调用
 */
+ (void)postWithURL:(NSString*)urlStr
             params:(NSDictionary*)params
            success:(void(^)(NSDictionary *json))success
            failure:(void (^)(NSError *error))failure;


@end

NS_ASSUME_NONNULL_END
